package com.fl.log_interception.controller;

import com.fl.log_interception.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: fulin
 * @Date: 2021/12/18/15:56
 * @Description:
 */
@RestController
public class UserController {


    @Autowired
    private UserService userService;

    @RequestMapping(value = "/getOne",method = RequestMethod.GET)
    public String roleOne(){
        return userService.roleOne();
    }


    @GetMapping(value = "/getTwo")
    public String roleTwo(){
        return userService.roleTwo();
    }
}
